﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MS.BasicData.Infrastructure
{
    public class ApiRestult
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool isSuc { get; set; }
        /// <summary>
        /// 返回码枚举
        /// </summary>
        public Restult Code { get; set; }

        /// <summary>
        /// 提示信息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 返回的数据
        /// </summary>
        public object? Data { get; set; }

    }
   
        public enum Restult : int
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 200,

        /// <summary>
        /// 失败
        /// </summary>
        Fail = 100,
    }
}
